package service.user;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.common.BaseMapper;
import com.common.BaseService;

import beans.user.xhlog;
import mapper.user.orderMapper;
import mapper.user.xhMapper;
import mapper.user.xhlogMapper;

@Service
@Transactional
public class XHLogServiceImpl<T> extends BaseService<T>{

	@Autowired
	private xhlogMapper<T> _xhlogMapper;

	@Override
	public BaseMapper<T> getMapper() {
		return _xhlogMapper;
	}

	/**
	 * 获取最近一次序号联系记录
	 * @param openid
	 * @return
	 */
	public T getByUid(String openid) {
		return _xhlogMapper.getByUid(openid);
	}
}